package com.bruce.tool.pay.wechat.wap.to;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author Bruce(刘正航)
 */
@Data
public class WapPayWxTo implements Serializable {
    @JSONField(name = "body")
    @NotBlank(message = "支付标题(subject)不能为空")
    private String subject;
    @JSONField(name = "out_trade_no")
    @NotBlank(message = "支付单号(orderNo)不能为空")
    private String orderNo;
    @JSONField(name = "total_fee")
    @NotBlank(message = "支付金额(totalAmount)不能为空")
    private String totalAmount;
    /**
     * 回传参数(透传)
     */
    @JSONField(name = "attach")
    private String passbackParams;
    @JSONField(name = "redirect_url")
    private String redirectUrl;
}
